import java.util.Scanner;
public class Work_5 {
    public static void main(String[] args){
        Scanner reader = new Scanner(System.in);
        System.out.println("请输入第一个数");
        int x = reader.nextInt();
        System.out.println("请输入第二个数");
        int y = reader.nextInt();
        System.out.println("请输入第三个数");
        int z = reader.nextInt();
        System.out.println(Cube(x,y,z));
    }

    public static int Cube(int x,int y,int z){
        return (int) (Math.pow(x,3)+Math.pow(y,3)+Math.pow(z,3));
    }
}

